package com.lu.library.utils

import kotlinx.coroutines.delay

object CountDown {



    suspend fun start(times:Int,onProgress:(Int)->Unit,onDone:()->Unit){
        repeat(times){c->
            onProgress(times-c)
            delay(1000)
        }
        onDone()
    }
}